#ifndef PSTYLEDFRAME_H
#define PSTYLEDFRAME_H

#include <QFrame>
#include <QPixmap>

/**
A styled frame 

	@author Daniel Kish <d.kish@pripares.com>
*/
class PStyledFrame : public QFrame
{
Q_OBJECT
 Q_PROPERTY(QPixmap backgroundTile READ getBackgroundTile WRITE setBackgroundTile DESIGNABLE true)
 Q_PROPERTY(QPixmap topLeftCornerPixmap READ topLeftPixmap WRITE setTopLeftPixmap DESIGNABLE true )
 Q_PROPERTY(QPixmap topRightCornerPixmap READ topRightPixmap WRITE setTopRightPixmap DESIGNABLE true)
 Q_PROPERTY(QPixmap bottomLeftCornerPixmap READ bottomLeftPixmap WRITE setBottomLeftPixmap DESIGNABLE true )
 Q_PROPERTY(QPixmap bottomRightCornerPixmap READ bottomRightPixmap WRITE setBottomRightPixmap DESIGNABLE true)
 Q_PROPERTY(QPixmap topFramePixmap READ topFramePixmap WRITE setTopFramePixmap DESIGNABLE true)
 Q_PROPERTY(QPixmap leftFramePixmap READ leftFramePixmap WRITE setLeftFramePixmap DESIGNABLE true)
 Q_PROPERTY(QPixmap rightFramePixmap READ rightFramePixmap WRITE setRightFramePixmap DESIGNABLE true)
 Q_PROPERTY(QPixmap bottomFramePixmap READ bottomFramePixmap WRITE setBottomFramePixmap DESIGNABLE true)
private:
 QPixmap m_topLeftCornerPixmap,
         m_topRightCornerPixmap,
         m_bottomLeftCornerPixmap,
         m_bottomRightCornerPixmap,
         m_topFramePixmap,
         m_bottomFramePixmap,
         m_leftFramePixmap,
         m_rightFramePixmap,
         m_backgroundTile;
public:
    PStyledFrame(QWidget *parent = 0);

    ~PStyledFrame();
    QPixmap topLeftPixmap();
    QPixmap topRightPixmap();
    QPixmap bottomLeftPixmap();
    QPixmap bottomRightPixmap();
    QPixmap topFramePixmap();
    QPixmap bottomFramePixmap();
    QPixmap leftFramePixmap();
    QPixmap rightFramePixmap();
    void paintEvent(QPaintEvent *e);
    void setBackgroundTile(QPixmap tile);
    QPixmap getBackgroundTile();

public slots:
    void setTopLeftPixmap(QPixmap pixmap);
    void setTopRightPixmap(QPixmap pixmap);
    void setTopFramePixmap(QPixmap pixmap);
    void setBottomFramePixmap(QPixmap pixmap);
    void setBottomLeftPixmap(QPixmap pixmap);
    void setBottomRightPixmap(QPixmap pixmap);
    void setLeftFramePixmap(QPixmap pixmap);
    void setRightFramePixmap(QPixmap pixmap);
   

};

#endif
